package fun.fykj.liu.interceptor;

import fun.fykj.liu.enums.ResCodeEnum;
import lombok.Data;

/**
 * @version V3.0
 * @Title: BussinessExcption
 * @Company: 成都影达科技有限公司
 * @Description: 描述
 * @author: 东进
 * @date 2019/11/28 下午7:45
 */
@Data
public class BusinessException extends RuntimeException {
    private int status;
    private String msg;

    public BusinessException(ResCodeEnum resCodeEnum) {
        this.status = resCodeEnum.getStatus();
        this.msg = resCodeEnum.getMsg();
    }
}
